import { useStore2 } from "@/store/index";
import { Button } from "antd";
export default function TestDemo() {
  const { increment, incrementAge } = useStore2();

  return (
    <div>
      <h1>中间件subscribeWithSelector</h1>
      <Button onClick={() => increment()}>addCount</Button>
      <Button onClick={() => incrementAge()}>addAge(但还是触发了一次）</Button>
    </div>
  );
}
